import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import 'amfe-flexible';

import HelloWorld from './components/HelloWorld.vue';
import Rule from './components/Rule.vue';


Vue.use(VueRouter)

Vue.config.productionTip = false

const routes = [
  { path: '/', component: HelloWorld },
  { path: '/rule/:id/post/:post_id', component: Rule, props: true }
]

const router = new VueRouter({
  routes
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
